﻿

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static Tools.EnumHelp;

namespace EntityModel
{
    /// <summary>
    /// 用户信息
    /// </summary>
    
    public class EGS_User
    {
        public EGS_User()
        {
            this.ID = Guid.NewGuid();
        }
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public Gender Gender { get; set; }
        /// <summary>
        /// 用户类别
        /// </summary>
        //public UserType? Type { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Name { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string? NikeName  { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>、
        [Required]
        public int Age { get; set; }
       
        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? PhoneNumber { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        [StringLength(150)]
        public string? Email { get; set; }
    }
}
